package com.liliudong.keelflower.upms.biz.service.sys;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liliudong.keelflower.upms.biz.entity.sys.SysMenu;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 系统菜单 服务类
 * </p>
 *
 * @author liudong.li
 * @since 2021-06-07
 */
public interface SysMenuService extends IService<SysMenu> {
    /**
     * 获取用户的权限列表
     *
     * @param userId
     * @param isSuperAdmin
     * @return
     */
    Set<String> getUserPermissionsByUserId(Long userId, boolean isSuperAdmin);

    /**
     * 获取用户的菜单权限列表
     *
     * @param userId
     * @param isSuperAdmin
     * @return
     */
    List<SysMenu> getUserMenusByUserId(Long userId, boolean isSuperAdmin);
}
